﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    [MetadataType(typeof(Sys_Roles_Metadata))]
    [DisplayName("用户角色")]
    public partial class Sys_Roles
    {
        public Sys_Roles()
        {
            Id = Guid.NewGuid();
        }

        public class Sys_Roles_Metadata
        {
            [ScaffoldColumn(false)]
            public object Id { get; set; }

            [DisplayName("角色名称")]
            [Required]
            public object RoleName { get; set; }

            [DisplayName("说明")]
            [DisplayFormat(ConvertEmptyStringToNull = false)]
            public object Description { get; set; }

        }
    }
}
